#include "BulletCollision/CollisionShapes/btTriangleShape.h"
#ifdef __cplusplus
extern "C" {
#endif
btTriangleShape* bullet_NewbtTriangleShape(){
	btTriangleShape* wrap_out = new btTriangleShape();
	return wrap_out;
}

btTriangleShape* bullet_NewbtTriangleShape1(btVector3* p0,btVector3* p1,btVector3* p2){
	btVector3 const& c_arg_p0=(btVector3 const&)(*p0);
	btVector3 const& c_arg_p1=(btVector3 const&)(*p1);
	btVector3 const& c_arg_p2=(btVector3 const&)(*p2);
	btTriangleShape* wrap_out = new btTriangleShape(c_arg_p0,c_arg_p1,c_arg_p2);
	return wrap_out;
}

void bullet_btTriangleShape_calcNormal(btTriangleShape* c_this,btVector3* normal){
	btVector3& c_arg_normal=(btVector3&)(*normal);
	c_this->calcNormal(c_arg_normal);
}

btVector3** bullet_btTriangleShape_GetFieldOfM_vertices1(btTriangleShape* c_this){
	return (btVector3**)(&c_this->m_vertices1);
}

btVector3* bullet_btTriangleShape_getVertexPtr(btTriangleShape* c_this,int index){
	int c_arg_index=index;
	btVector3& c_out = c_this->getVertexPtr(c_arg_index);
	btVector3* wrap_out = (btVector3*)(&c_out);
	return wrap_out;
}

btVector3* bullet_btTriangleShape_getVertexPtr1(btTriangleShape* c_this,int index){
	int c_arg_index=index;
	btVector3 const& c_out = c_this->getVertexPtr(c_arg_index);
	btVector3* wrap_out = (btVector3*)(&c_out);
	return wrap_out;
}

#ifdef __cplusplus
}
#endif
